package school.xauat.offershow.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import school.xauat.offershow.pojo.Business;
import school.xauat.offershow.serice.BusinessService;

import java.util.List;

/**
 * @author ：zsy
 * @date ：Created 2021/12/16 23:49
 * @description：
 */
@RestController
@Api(tags = {"行业Controller"})
public class BusinessController {

    @Autowired
    BusinessService businessService;

    @GetMapping("/business/getAll")
    public List<Business> getAll() {
        return businessService.getAll();
    }

}
